#include <stdio.h>
#include <stdlib.h>	
#include <ctype.h>
#include <unistd.h>

#define	SOLUTIONDATA "SolutionData.txt"

#define  	SMARTNEW(type,number) ((type *)malloc((unsigned)(sizeof(type)*(number))))
#define  	SMARTDELETE(handle) free(handle)

#define	HFACTOR 0.01
#define	MAXSTEPS 2500 

//Source Info Struct Actually Not Defined Here
typedef struct t_src
{
	//char name[ELEMENT_LENGTH];
	//T_NODE* node1;
	//T_NODE* node2;
	int type;	//1:DC(1) 2:AC(2) 3:PULSE(7) 4:SIN(6) 5:EXP(6)
	double para1;
	double para2;
	double para3;
	double para4;
	double para5;
	double para6;
	double para7;
	struct t_src* next;
}T_SRC;

//SES Source Info Struct
typedef struct SES_src
{
	int type;	//1:DC(1) 2:AC(2) 3:PULSE(7) 4:SIN(6) 5:EXP(6)
	int pos;	//src in list of all element
	//ToDo: after the T_SRC is determined, to specify the detailed name
	double para1;
	double para2;
	double para3;
	double para4;
	double para5;
	double para6;
	double para7;
	struct SES_src* next;
}SES_SRC;
